#include "include.h"
#include "gui/graphicpainter.h"


#include "compile/debug_memoryleaks"

using namespace gui;


GraphicPainter::GraphicPainter()
{
}


GraphicPainter::~GraphicPainter()
{
}


void GraphicPainter::drawRect(const Vector& p1, const Vector& p2) {
	drawLine(Vector(p1.x, p1.y), Vector(p2.x, p1.y));
    drawLine(Vector(p2.x, p1.y), Vector(p2.x, p2.y));
    drawLine(Vector(p2.x, p2.y), Vector(p1.x, p2.y));
    drawLine(Vector(p1.x, p2.y), Vector(p1.x, p1.y));
}
